<?php
function resolveEnv($path){
    foreach ($_ENV as $variable => $value)
    {
        $path = str_replace('$'.$variable, $value, $path);
    }
    return $path;
}
?>